import tkinter as tk

from .py_tool import PyTool
# import applications.common.screenshot.py_tool as py_tool
# import py_tool as py_tool
from .screenshot import Screenshot
# import keyboard,os


'''
调用截图工具，截图保存
'''
def startScreenshot():
    scale = PyTool.get_screen_scale_rate()
    PyTool.eliminate_scaling_interference()
    top = tk.Tk()

    Screenshot(top, scale)
    # keyboard.add_hotkey('f1',Screenshot(top, scale))
    # def area():os.system("screenshot.py")
    # def area():Screenshot
    # keyboard.add_hotkey('f1',Screenshot(top, scale))


    top.mainloop()
